<?php
include_once "RequestInit.php";
include_once "VerifyToken.php";

if(!isset($_REQUEST['entryid']))
{
	header('HTTP/1.1 500 improper parameters submitted');
	exit;
} 
$result = Entry::delete($_REQUEST['entryid'], $_SESSION['userId'],$dbConn);
echo json_encode($result);
include_once "RequestCleanup.php";
?>